package com.yeyks.common.param;

import com.yeyks.common.annotation.PhoneCheck;
import com.yeyks.common.annotation.StrNotEmpty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author fuchangshuai
 * @date 2019/07/11 11:15
 */
@Data
public class WithdrawalParam implements Serializable {
    private static final long serialVersionUID = -5113470252951249033L;

    @ApiModelProperty(value = "提现金额")
    @NotNull(message = "提现金额不能为空")
    private Integer amount;

    @ApiModelProperty(value = "手机号")
    @PhoneCheck
    private String phone;

    @ApiModelProperty(value = "验证码")
    @StrNotEmpty(message = "验证码输入不能为空")
    private String code;

    @ApiModelProperty(value = "类型(type，0营业提现，1床垫分成提现)")
    @NotNull(message = "提现类型不能为空")
    private Integer type;



}
